package com.sntk.organauthomanager.infrastructure.commit.impl;

import com.sntk.organauthomanager.application.dto.ResponseData;
import com.sntk.organauthomanager.infrastructure.commit.MedicalUserCloudCommit;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

@Component
@ConditionalOnProperty(prefix = "env",name = "pattern",havingValue = "cloud")
public class MedicalUserCommitHystrix implements MedicalUserCloudCommit {
    @Override
    public ResponseData searchAllocationUsers(String institutionNumber) {
        return ResponseData.error("服务不可用");
    }
}
